from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Firefox()
driver.maximize_window()
url = 'https://www.jd.com/'
driver.get(url)

sleep(3)
# 设置JS脚本
js = 'window.scrollTo(0, 100000)'
# 执行JS脚本
driver.execute_script(js)

sleep(3)
driver.quit()